﻿using System;
/// <summary>
/// 全局工具
/// </summary>
public static partial class ESF_GlobalUtility
{
    #region ESF_NewGlobalUniqueId 新生成全局唯一ID
    /// <summary>
    /// 新生成全局唯一ID
    /// </summary>
    /// <returns>全局唯一ID</returns>
    public static long ESF_NewGlobalUniqueId()
    {
        return BitConverter.ToInt64(Guid.NewGuid().ToByteArray(), 0);
    }
    #endregion

    #region ESF_NewHashCode 新生成HashCode
    /// <summary>
    /// 新生成HashCode
    /// </summary>
    /// <returns>HashCode</returns>
    public static int ESF_NewHashCode()
    {
        return Guid.NewGuid().GetHashCode();
    }
    #endregion

    #region AssetBundleName 后缀名
    /// <summary>
    /// AssetBundleName后缀名
    /// </summary>
    public readonly static ESF_FileExtAttribute assetBundleNameSuffixExt = enESF_UnityFileExt.Bytes.ESF_FirstAttribute<ESF_FileExtAttribute>();
    #endregion
}